package com.sky.service;

import com.github.pagehelper.Page;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.dto.OrdersPaymentDTO;
import com.sky.dto.OrdersSubmitDTO;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {
    /**
     * 用户下单
     * @param ordersSubmitDTO
     * @return
     */
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    /**
     * 查询订单详情
     * @param orderId
     * @return
     */
    Orders viewOrderDetail(Long orderId);

    /**
     * 取消订单
     * @param orderId
     */
    void cancelOrder(Long orderId);

    Orders repetitionOrder(Long orderId);

    Orders reminderOrder(Long orderId);

    PageResult orderList(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO getOrderStatistics();

    void confirmOrder(Orders orders);

    void DeliveryingOrders(Long orderId);

    void completeOrder(Long orderId);

    void cancelOrder(Orders orders);

    void rejecOrder(Orders orders);

    OrderVO getOrderDetails(Long orderId);
}
